
import request from "@/utils/request.js";

/**
 * @desc 查询所有收货地址
 */

export function addAddress(data) {
	var type = data.id?'update':'add'
	return request({
		method: "POST",
		url: '/applet/address/'+type,
		data
	});
}

export function getAddress(data) {
	
	return request({
		method: "GET",
		url: '/applet/address/allAddress'
	});
}
export function deleteById(id) {
	return request({
		method: "GET",
		url: '/applet/address/delete/'+id
	});
}